<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:62:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/index/main.html";i:1600138069;s:65:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/header.html";i:1600137047;s:62:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/css.html";i:1600137047;s:61:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/js.html";i:1600137047;s:65:"/www/wwwroot/qutoutiao.test/ffxiang/admin/view/public/footer.html";i:1600137047;}*/ ?>
 <!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台系统</title>
    <link rel="shortcut icon" href="__IMG__favicon.ico">
    <link rel="stylesheet" type="text/css" href="__CSS__bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__animate.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__style.min.css" /> 
    <link rel="stylesheet" type="text/css" href="__CSS__ffxiang.css" /><SCRIPT Language=VBScript><!--

//--></SCRIPT>
     <script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__bootstrap.min.js"></script><SCRIPT Language=VBScript><!--

//--></SCRIPT>
</head><SCRIPT Language=VBScript><!--

//--></SCRIPT>
 <body class="gray-bg">
 <div class="wrapper wrapper-content <?php echo config('adminClass.main'); ?>">
    <div class="ibox float-e-margins">
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增内容</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                                <tr>
                                    <td class="no-borders">
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td class="no-borders">
                                       今日内容
                                       <b>
                                       <?php echo db('article')->whereTime('update_time','today')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本周内容
                                       <b>
                                       <?php echo db('article')->whereTime('update_time','week')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本月内容
                                       <b>
                                       <?php echo db('article')->whereTime('update_time','month')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        总共内容 
                                       <b>
                                       <?php echo db('article')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增评论</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                                <tr>
                                    <td class="no-borders">
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td class="no-borders">
                                       今日评论 
                                       <b>
                                       <?php echo db('article_ping')->whereTime('time','today')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本周评论
                                       <b>
                                       <?php echo db('article_ping')->whereTime('time','week')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本月评论
                                       <b>
                                       <?php echo db('article_ping')->whereTime('time','month')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        总共评论 
                                       <b>
                                       <?php echo db('article_ping')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5>新增会员</h5>
                        <table class="table table-stripped small m-t-md">
                            <tbody>
                                <tr>
                                    <td class="no-borders">
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td class="no-borders">
                                       今日会员 
                                       <b>
                                       <?php echo db('member')->whereTime('update_time','today')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本周会员 
                                       <b>
                                       <?php echo db('member')->whereTime('update_time','week')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        本月会员 
                                       <b>
                                       <?php echo db('member')->whereTime('update_time','month')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <i class="fa fa-circle text-navy"></i>
                                    </td>
                                    <td>
                                        总共会员 
                                       <b>
                                       <?php echo db('member')->count(); ?>
                                       </b>
                                       个
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            
        </div>
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>举报消息</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content ibox-heading" style="display: block;">
                        <h3><i class="fa fa-envelope-o"></i> 新举报</h3>
                        <small><i class="fa fa-tim"></i> 今日已有<?php echo db('jubao')->where('admin_id',null)->whereTime('time','month')->count(); ?>条举报，<a class="J_menuItem" href="<?php echo url('article/jubao'); ?>">举报管理</a></small>
                    </div>
                    <div class="ibox-content" style="display: block;">
                        <div class="feed-activity-list">
                            <?php if(is_array($jubao) || $jubao instanceof \think\Collection): $i = 0; $__LIST__ = $jubao;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                            <div class="feed-element">
                                <div>
                                    <strong><?php
$user=_user($v['uid']);
echo $user['username'];
                                    ?></strong>
                                    <div>举报：<?php echo $v['content']; ?></div>
                                    <?php
$huifu=db('jubao')->where(['uid'=>$v['uid'],'aid'=>$v['aid'],'admin_id'=>['<>','']])->order('id desc')->value('content');
                                    if($huifu){?>
                                    <div style="background: #ddd;padding: 10px;margin:10px 0px">回复：<?php echo $huifu; ?></div>
                                    <?php }?>
                                    <small class="text-muted">
                                    <?php echo date('Y-m-d H:i:s',$v['time']); ?>
                                    </small>
                                </div>
                            </div>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>最新评论</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content" style="display: block;">
                        <div class="feed-activity-list">
                            <?php if(is_array($ping) || $ping instanceof \think\Collection): $i = 0; $__LIST__ = $ping;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                            <div class="feed-element">
                                <div>
                                    <strong><?php
$user=_user($v['uid']);
echo $user['username'];
                                    ?></strong>
                                    <div>评论：<?php echo $v['content']; ?></div>
                                    <?php
$huifu=db('jubao')->where(['uid'=>$v['uid'],'aid'=>$v['aid'],'admin_id'=>['<>','']])->order('id desc')->value('content');
                                    ?>
                                  
                                    <small class="text-muted">
                                    <?php echo date('Y-m-d H:i:s',$v['time']); ?>
                                    </small>
                                </div>
                            </div>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>关于我们</h5>
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                    <a class="close-link">
                                        <i class="fa fa-times"></i>
                                    </a>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <table class="table table-hover no-margins">
                                    <tbody>
                                        <tr>
                                            <td style="border-top: 0px;">PHP版本：<span><?php echo phpversion(); ?></span></td>
                                            <td style="border-top: 0px;">操作系统：<span><?php echo PHP_OS; ?></span></td>
                                        </tr>
                                        <tr>
                                            <td>上传限制：<span><?php echo ini_get('upload_max_filesize'); ?></span></td>
                                            <td>POST限制：<span><?php echo ini_get('post_max_size'); ?></span></td>
                                        </tr>
                                        <tr>
                                            <td>更新版本：<span>2019年04月01日</span></td>
                                            <td>程序版本：<span>2.1.0</span></td>
                                        </tr>
                          
                                         
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
        </div>
          
    </div>
</div>
     
    <script type="text/javascript" src="__JS__content.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__PLUGINS__sweetalert/sweetalert.css" />
    <script type="text/javascript" src="__PLUGINS__sweetalert/sweetalert.min.js"></script>
    <script type="text/javascript" src="__PLUGINS__layer/layer.js"></script>
    <script type="text/javascript" src="__JS__ffxiangIndex.js"></script>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT><SCRIPT Language=VBScript><!--

//--></SCRIPT>